********************************************
* NON MFG: only Wholesale and retail trade *
********************************************
*
do $DIRDO/MMO_C_regfile_nonmfg.do
*
************************************
*"First stage": stuff for Section 2*
************************************
*
clear 
set more off
********************************
*Data preparation for 1st stage*
********************************
*
do $DIRDO/skewregs_dataprep1ststage_nonmfg.do
set linesize 250
* output is temp_nonmfg.dta used in Section 2
*
********************************************
* Table 2: Demand Shocks and local exports *
********************************************
*
do $DIRDO/skewregs_tabOA1.do
*
*********************************************
* Table 3: Demand Shocks and local skewness *
*********************************************
*
use temp_nonmfg,clear
eststo clear
keep if nbnc8iso2>1
keep if nbnc8_max>1
global depvar = "theil"
global depvar_d1 = "theil_d1"
global nbnc8iso2 " "
global nbnc8iso2_d1 " "
*
save tempfirst_nonmfg,replace
*
do $DIRDO/skewregs_tabOA2.do
*
*************************************
*"Second stage": stuff for Section 5*
*************************************
*
do $DIRDO/skewregs_dataprep2ndstage_nonmfg.do
*
********************************************************************
*Trade shock effects on exports and # of products + export intensity
********************************************************************
*
do $DIRDO/skewregs_tabOA3.do
